package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface IEmployeeService {
    void delete(Long id);

    void save(Employee employee, Long[] ids);

    Employee get(Long id);

    List<Employee> listAll();

    void update(Employee employee, Long[] ids);

    PageInfo<Employee> query(QueryObject qo);

    Employee login(@Param("name") String name, @Param("password") String password);


    void updatePwd(String newPassword,String oldPassword,Long id);

    void resetPwdById(String newPassword,Long id);

    void batchDelete(Long[] ids);

    Employee selectByName(String name);

    Workbook exportXls();

    void importxls(MultipartFile file) throws Exception;

    List<Employee> selectByRoleSn(String... sns);

    void updateDisableById(Long id);

    void updateRecoveryById(Long id);
}
